package org.py.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 登录
 * </p>
 *
 * @author anyi
 * @since 2024-11-19
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class Userlogin implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 用户id
     */
    @TableField("userid")
    private Long userid;

    /**
     * 用户名
     */
    @TableField("username")
    private String username;

    /**
     * 用户账号
     */
    private String userNum;

    /**
     * 密码
     */
    @TableField("password")
    private String password;


    /**
     * 类型;1：普遍用户2：管理员
     */
    @TableField("types")
    private Integer types;

    /**
     * 权限;逗号分隔
     */
    @TableField("authority")
    private String authority;

    /**
     * 创建时间
     */
    @TableField("createtime")
    private LocalDateTime createtime;

    /**
     * 权限;逗号分隔
     */
    @TableField("useridback")
    private String useridback;
    /**
     * token值
     * */
    @TableField(exist = false)
    private String token;

    /**
     * 用户唯一识别码(机器码、手机编码)
     * */
    @TableField(exist = false)
    private String machinecode;

    /**
     * 批量删除
     * */
    @TableField(exist = false)
    private String[] asBatcList;

}
